package com.slz3.business.module.wmsManagement.wmsStockOutItems.domain;

import com.slz3.business.module.goodsManagement.gooGoods.domain.GooGoods;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(schema = "wms_management", name = "wms_stock_out_items")
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsStockOutItems extends WmsStockOutItemsEntity implements Serializable {

    private static final long serialVersionUID = 3928173855627287110L;
    @Transient
//    @NotNull(message = "ser1 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser1 必须非空!", groups = {Add.class, Modify.class})
    private String serValid;

    @Transient
//    @NotNull(message = "ser2 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser2 必须非空!", groups = {Add.class, Modify.class})
    private String serValid2;

    @OneToOne
    @JoinColumn(name="fkSerItemNum")
    private GooGoods gooGoods;

}
